package com.ctgu.rabbitmq.rabbitmq.exchange.defaultExchange;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ ClassName DefaultExchangeConfig
 * @ Author Alex2
 * @ Date 2025/8/14 15:40
 **/

@Configuration
public class DefaultExchangeConfig {

    public static final String QUEUE_DEFAULT = "queue_default";

    // 创建队列
    @Bean(name = QUEUE_DEFAULT)
    public Queue queueDefault() {
        return new Queue(QUEUE_DEFAULT, true);
    }
}
